Can you find out the number that will replace the question mark?

Which number replaces the question mark in the picture below

4.

The 1st picture has 9 connecting dots / crossed lines.
The 2nd picture has one connecting dot / crossed line.
The last picture has 4 connecting dots / crossed lines.