Count the unpaid invoices