Optimize output count to cache counts
change variable names, add correct percentage to end of program output
Merge pull request #11 from ianks/optimize-output-count

Optimize output count to cache counts