EXEC [ActiveSystemServer].[amr].[MonitoringReport] 7

return 

SELECT 
    COUNT(1)
    ,cast(AMR_ArizonaRep_extraction_TS as date) as dt
FROM Arizona.dbo.APS_monitor_row a 
where AMR_ArizonaRep_extraction_TS is not null 
group by cast(AMR_ArizonaRep_extraction_TS as date)
order by dt desc 
