<= instead of < maxCount