Fix for GCP-9883

Change the count implementation such that it searches with the given GIDs in both local and central, regardless of sign of GID.

Post commit code review : Jai Villarino