Added function to return count of records in search results set