Reduce number of database transactions on ticket index page.

Previously, since we were using `current_user.tickets' and
`current_user.tickets.size', there were two separate database queries.
This folds them in to one by using an intermediate variable, `@tickets'.
This also switches to the `length' method, which saves a database query.