takes the count