gives the count