Recurrence Relations and Counting: Solving Linear Recurrences