[GEOS-6187] wfs2 + resultType=hits + maxFeatures returns bad numberMatched

First cut of the implementation, provided to support discussion