added a helper script to count running services