more efficient ticket counting on dashboard page, #17067