RepositoryCounter counts snapshot repositories of TransactionManager

The RepositoryCounter is walking the storage and counting repositories it encounters. If transactions are used, it would currently also walk the snapshots repositories of the transactions. We should change the RepositoryCounter to ignore the snapshots.