quota: return the number of available items in the Items function

Related to #441.
app: fix tests that use quota.Items

Related to #441.