Using Query expression:
You can set the ReturnTotalRecordCount property to True.
Using FetchXml:
You can set the same property as shown below.
<fetch mapping='logical' count='10' returntotalrecordcount='true'>
<entity name='account'>
<attribute name='accountid' />
<attribute name='accountnumber' />
<attribute name='address1_city' />
<attribute name='address1_telephone1' />
<attribute name='name' />
<order attribute='name' />
<filter>
<condition attribute='address1_city' operator='like' value='a%' />
</filter>
</entity>
</fetch>
This can be helpful to show Record 1 of
Hope this helps!