@Override
    public long count() {
        val redisKeyPattern = RedisCompositeKey.forAccounts().toKeyPattern();
        val accounts = Objects.requireNonNull(casRedisTemplates.getAccountsRedisTemplate().keys(redisKeyPattern));
        return accounts.isEmpty() ? 0 : casRedisTemplates.getAccountsRedisTemplate().countExistingKeys(accounts);
    }
This is {@link RedisGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-gauth-redis/src/main/java/org/apereo/cas/gauth/credential/RedisGoogleAuthenticatorTokenCredentialRepository.java