Backport of "Geo: Ignore remote stored objects when calculating counts" See merge request gitlab-org/gitlab-ce!17581