The information for total hits (not just the number of detached hits) does not make it into the CompassSearchResults. This information is still relevant even though the results are truncated for display. It can certainly be calculated by iterating over the Page[] array and totaling the size of each Page, but this responsibility should be delegated to the object itself.
A new paramter should be added to the constructor of CompassSearchResults
CompassSearchResults( CompassHit[] hits, long time, int totalResults );
int getTotalResults();