getReferencesCount

optional referenced public keys
repeated string references = 4;

Return

The count of references.