Changing the definition of the count method and adding underscore.js.