Refactor tickets

just 

```ruby
ticket_users.where(user_id: user.id).count
```

will do

http://api.rubyonrails.org/classes/ActiveRecord/Calculations.html#method-i-count