Children.count counts children in the React children data structure, not the final rendered DOM output.