WebSearch: fix for the number of printed records
WebSearch: fix for the number of printed records

* Fixes the number of records printed when a ranking method is
  used.  (PR #2512)

Co-authored-by: Nikolaos Kasioumis <4c7685923ef4eda4c5f1e48e072c204c63d881cc@cern.ch>
Signed-off-by: Ludmila Marian <e82cd4fb30962648dc4a4769a1bcc5e649b71d6b@gmail.com>
Tested-by: Tibor Simko <c7116e45300b163846dc01f3ed02116e3f8ef7a5@cern.ch>

inveniosoftware/invenio,tiborsimko/invenio,inveniosoftware/invenio,tiborsimko/invenio