update childCount()

remove unnecessary scoping when couting by ID