fixed parseInt in count