removed previous implementation of the count and tests