removed the debug message
added process counting