fix count of limited elements
Merge pull request #267 from nschoenholtz/add-another-fix

fix count of limited elements