React now has React.Children.count(children) method documented here https://facebook.github.io/react/docs/react-api.html#react.children.count
UPDATE:
upon reflection, I’m not sure this actually answers the question, but will leave here anyway as people have already voted on it.