count and display count of children for performance check
performance improvement attempt