Adding active_count check
Merge pull request #86 from InCNTRE/Grp40No10

Adding active_count check