Below is my query
select @monNameStr as [MName], IsNull(count(c.AssignmentID),0), IsNull(sum(s.ACV),0), IsNu
select @@ROWCOUNT
(e.g. Counting the number of deleted rows in a SQL Server stored procedure )