number of total results is got by totalCount variable.