Added caching to Indexer Count functions. Also made indexer cache more generic in that it does not only store ObjectIDs anymore, but count values as well.