updatin record counter

adding behavior to detect total number of matches in solr, rather than
total number of matches provided.