Download Counting Principles and Generating Functions