Implemented "_count" reduce function