in reply to Call shell script in Perl

you may want to look up Proc::ProcessTable and skip the shell stuff entirely.. you could probably count processes by fname..

Update: Bah, so late...