Counting Independent Sets Using the Bethe Approximation