Fix count with limit

Fixes https://github.com/FelixOnline/FelixOnline/issues/215