Both are OK, but the meanings are different. In the first one, there may have been other children at the party. (Perhaps they didn't dance so well.) In the second sentence, the writer (or speaker) is referring to ten specific children. There may have been other children at the party, but we are only talking about these children.