improve countCorrectWords