add count_workers options to count number of workers

Sometimes we need to calculate numbers of workers, such as `php` cgi workers.