Retrieving the number of matching results

The standard response to any value search request always includes information about the total number of matched values found, and whether all of them have been returned in this request. This information is returned in the TotalValuesCount and HasMore attributes on the PropertyMatches element.

A PropertyMatches element appears in the response only for those attributes in which matches were found, and contains attribute values for those matches. It contains two attributes that provide information on the number of values found and returned:
TotalValuesCount Specifies the total number of matched values found per property.
HasMore Specifies whether any results were cut off because of a limit specified in the request with MaxPerProperty.
Additionally, if the returned match is a managed attribute, then in the response, you will see the Match complex type. Match lists details of a single value within a particular attribute that matched a value search. If the matched value belongs to a managed attribute, then the FullPath is present in the response too, as in the following abbreviated example of the response:
<cs:PropertyMatches Name="ProductCategory" DisplayName="Product Category" TotalValuesCount="1" HasMore="false">
 <cs:Match>
  <cs:MatchingValue DisplayName="Gloves">20</cs:MatchingValue>
    <cs:FullPath>
      <cs:DimensionValue>
        <cs:DimensionValue DimensionName="ProductCategory" 
         Spec="/">ProductCategory
        </cs:DimensionValue>
        <cs:Operator xsi:type="cs:RefinementOperator" 
         Name="ProductCategory" Spec="/"/>
        </cs:DimensionValue>
                <cs:DimensionValue>
         <cs:DimensionValue DimensionName="ProductCategory" 
          Spec="CAT_CLOTHING">Clothing
        </cs:DimensionValue>
        <cs:Operator xsi:type="cs:RefinementOperator" 
         Name="ProductCategory" Spec="CAT_CLOTHING"/>
        </cs:DimensionValue>
        <cs:DimensionValue>
            <cs:DimensionValue DimensionName="ProductCategory" 
              Spec="20">Gloves</cs:DimensionValue>
              <cs:Operator xsi:type="cs:RefinementOperator" 
               Name="ProductCategory" Spec="20"/>
             </cs:DimensionValue>
      </cs:FullPath>
    </cs:Match>
</cs:PropertyMatches>