@Override
    public long count() {
        val count = (Number) entityManager.createQuery("SELECT COUNT(r.userId) FROM " + JpaGoogleAuthenticatorToken.class.getSimpleName() + " r").getSingleResult();
        LOGGER.debug("Counted [{}] token record(s)", count);
        return count.longValue();
    }
This is {@link GoogleAuthenticatorJpaTokenRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-gauth-jpa/src/main/java/org/apereo/cas/gauth/token/GoogleAuthenticatorJpaTokenRepository.java