Looks like a linux/unix script monitor:
count=`ps -ef|grep -c xxxx | grep -v grep | wc -l`
if [ $count == 7 ] then
echo "Statistic:$count \n";
echo "Message: Count is at $count and looks good \n"
else
echo "Statistic:$count \n";
echo "Message: Count is at $count and needs to be investigated"
fi
Note: You can use Warning or Critical Statistics threshold to trigger an alert ( set Warning threshold not equal to 7 -> create an adavance alert to trigger when component is in warning state)