It's likely accessible through whichever filtered object you have. So if you have @filtered_companies filled with all of your filtered companies, you should be able to run some quick count on @filtered_companies rather than your entire Company model. I can't really test it right now, but if I recall correctly I think you can do @filtered_companies.size since @filtered_companies would be an array and that will count the number of items in that array.
Bookmarks