Descriptions:

Count on a tree

SPOJ - COT