Pattern count

Sign in to test your solution.