validate min and max count
Merge pull request #108 from backbone87/feature/validate-count

validate min and max count