Combinatorial invariants of analytic spaces