This functions leads to no use in smart contract or java code. And when it is necessary to know how much keys a authority has published, it would suffice to recover and get the size of the array of bytes32 storing the labels of attributes.
https://github.com/brunoarruda/PGC-Prototype-Client/blob/22d9e195eb2a29f6a40d761a195a3418e3b0fde1/src/main/resources/solidity/SmartDCPABEAuthority.sol#L34-L37