The return value of this function is the number of children the node has of the requested type.
In the following, i will be set to the number of erpNode children the eventNode has.
eventNode *ev; ... i = ev->numChildren(erpType);