I am not sure what you mean by count of some special records, but here is an example of some code in the Learning Resources that reports a Fetch Count of an argument of type IEnumerable.
private void ReportFetchCount(IEnumerable result, string entityType, string queryDescription) {
int entitiesRetrieved = ((ICollection)result).Count;
WriteMessage(string.Format("Retrieved {0} entities of type {1} using query of type {2}", entitiesRetrieved, entityType, queryDescription));
}