Implemented and tested count.