The combinatorial part of the cohomology of a singular variety