This property returns back the total number of key objects contained in this keyGroup.
function onSample()
{
var keyGroup = scene.getKeyGroupById("keyGrp");
if (keyGroup)
{
shell.print("There are " + keyGroup.keyCount + " keys in this keyGroup.");
}
}