The only way I know how to do this is to insert into the temporary table from the stored procedure, and then select the counter. Unfortunately, there is no proper way to make a "selection" in a stored procedure.
CREATE TABLE #stuff (id int, status char(6)) INSERT #stuff (id, status) EXEC dbo.sp_get_stuff SELECT count(*) FROM #stuff DROP TABLE #stuff
Edit
The above method will allow you to choose from a stored procedure, but as Greg pointed out, the string value can be simplified to:
EXEC dbo.sp_get_stuff SELECT @@Rowcount
source share