Socrates and the Three Little Pigs: Connecting Patterns, Counting Trees, and Probability