Note on the distribution of luminosities of K and M giants