Counting Patterns With Fractions