@Override
    public long size() {
        return cassandraSessionFactory.getCassandraTemplate()
            .count(CassandraRegisteredServiceHolder.class);
    }
This is {@link CassandraServiceRegistry}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-cassandra-service-registry/src/main/java/org/apereo/cas/services/cassandra/CassandraServiceRegistry.java