Given a graph , we show how to compute the number of (perfect) matchings in the graphs and , by looking at appropriate entries in a power of a particular matrix. We give some generalizations and extensions of this result, including showing how to compute tilings of boards using monomers, dimers, and tiles.