getReferencesCount

optional referenced public keys
repeated string references = 8;

Return

The count of references.