I am pretty sure it is four, because if you look on the left, you can see four square ends, and on the right, if you count the edg... hang on. *mindblown*
I see 2 complete rectangular prisms, top and bottom. Others either split or do not connect to itself.
Darn it, this is what happens when we try to fit a three dimensional reality onto a two dimensional plane! This is why we can't have nice things.