Counting heads

Sign in to test your solution.