made the controller work correctly, was not passing count variable