nindiv function

Count the number of individuals in the data