Counting in Graph Covers: A Combinatorial Characterization of the Bethe Entropy Function