Modified code and added

Count.js added for utility function. inventory esque functionality