Tomek Czajka's submission of Counting Terms | CodeChef