Updated to properly display number of total hits in a few additional cases.