Set the select statement to output count(status) as count