Fix footer count update for multi-table pages

The initial footer count update was selecting all tables on the page
at once for the update, so the count was a sum of all visible rows
on the page.

Fixes bug #1131522.

Change-Id: Iff85ec8533ed62c01d91a21d7f7ea35dcfbf1417
Merge "Fix footer count update for multi-table pages"