Hi, Welcome to the forums..
Next time when you post your code fragments, enclose it like this:

[CODE]your code goes here[/CODE]

Regarding your question, maybe you could try it like this:
Code:
...status, COUNT(*) AS cnt from mytable...
Now the resultset would have an additional field named "cnt" which would contain the count.