fork detector based on processes count Fixes #12

Fixes #12