added states check count
Merge branch 'master' of https://github.com/Jegp/ISP2014