correct count statement when searching for individual invoices by #