getReferencesCount

optional referenced public keys
repeated string references = 7;

Return

The count of references.