Advanced Counting Techniques-Application of recurrence relation