How can I find out the number of related records in the child table

How can I find out the number of related records in the child table

Hello
How can I find out the number of related records  in the child table?
Thank you.


only_relational_count = SubForm [ID == ID].count(); //not working