The man in the middle is a father and a son at once, so he counts twice.

Strictly the grandfather is somebody’s son too, which makes two fathers and three sons, but nobody likes that answer.