Counting solutions of the old puzzle