pushing survey question counting logic to the controller