Implemented count()