getN function

Calculate the number of individuals within a size range