This property returns back the total number of command object contained in this commandGroup.
function onSample()
{
var commandGroup = scene.getCommandGroupById("myCmdGrp");
if (commandGroup)
{
shell.print("There are " + commandGroup.commandCount + " command in this commandGroup.");
}
}