Counting-Based Reliability Estimation for Power-Transmission Grids