merge with Sergey's count_sons.c