See JavaScript. Following paragraph contains

[A] [B] [C] [D]

(where [B] and [C] are in elements, [A] and [D] in nodes)

Then:

childElementCount of paragraph: 2
number of child nodes: 4
number of children: 2