GetFeature - Hits - returns number of rows matched in filters

Required URL parameter for GetFeature or GetFeatureAdvanced request type:
resultType=hits
Example request:
/wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&SRSNAME=EPSG:3003
  &REQUEST=GetFeatureAdvanced
  &TYPENAME=p5_default_db:TEST_PERMS
  &resultType=hits
Result:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection
    xmlns:wfs="http://www.opengis.net/wfs/2.0"
    xmlns="http://www.opengis.net/wfs/2.0"
    xmlns:gml="http://www.opengis.net/gml"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" numberMatched="39" numberReturned="0"/>