TAJO-1002: Implement a way to determine the number of non-leaf tasks

https://dbserver.korea.ac.kr/jira/browse/TAJO-1002