DECLARE @countnotification INT
SELECT @countnotification = COUNT(*)
FROM [SR]
PRINT @countnotification
Change the print part to your netsend command.
Without more information, cant really comment on whether you need a Count(Distinct *) or other scenarios.