sanger/sequencescape — pull request #764 by JamesGlover (2013-06-10 15:49:00+00:00)
Title: [fixes #51393927] Use the inbox count for inbox count

Calling .empty? on the inbox scope generates an SQL
request which attempts to join across half the database.
This takes ages. Fortunately the inbox scope already
provides a special count action, which we can use instead.

This makes inboxes much faster.