You're right, @guests
will return the filtered guests only, so if you want to have the rsvp count of all guests, your only option is to add another instance variable in the controller index method:
@guests_count = Guest.where(rsvp: true).count
Of course this means an extra query to the database and you have to decide if this count information is important enough to grant an extra DB call.
On the other hand: in the context of filtered guests, it might be confusing for a visitor to see another guest rsvp count than the actual displayed quests.