children count in class model