Added query to get failure count by phone model and date range.