Replace count with exists
Merge pull request #30 from Stranger6667/fix-model

Replace count with exists