The image given satisfies Euler, but feels like nonsense to me. In a more general context, you are meant to build up a space out of, for example, $n$-cells (e.g. a point is a $0$-cell, a segment is a $1$-cell, a triangle is a $2$-cell, a tetrahedron is a $3$-cell, and so on). Then the
Betti numbers are a topological invariant.