Issue #2835989 by gwagroves, Jo Fitzgerald, alexpott: DatabaseQueue::numberOfItems should return an integer