Note on the evaluation of the density integral in globular and open clusters