How to get total number of results in Search API View? How can I get the total number of results on a Search API View that has a limit of 5 results to display?

Some more info:
I have to make a bit more complex search where several attachments are combined on a page as a groups of results. Every group should show just the first 5 results, but also a link "see all XX results". I'm using Search API + Solr, Views with exposed fulltext search.
If I use "Global: Results summary" in header or footer, it will show maximum the limit of 5 as a number.

edit 1

Search API Solr returns 'numFound' which is what I need, but how do I use it in Views?
So after a day, here's the result:

As J. Reynolds suggested, I finished up using $view->total_rows, but:


To populate $views->total_rows, you have to use a pager in your view - that was not an option with the attachments.
If you don't use a pager, you could force populating $view->total_rows by altering the View query before its execution like this:



    function mycustommodule_views_pre_execute(&$view) {
      $view->get_total_rows = TRUE;
    }


And after that you have that $view->total_rows!