FetchXML has limitations.

For those of you that have not really used FetchXML a lot, you can only return up to 5000 record using FetchXML. So in a situation where you want to return the record count, stay away from FetchXML. Use a personal chart instead, or a report.