Add count property to view.js