Linearity of expectation

The expectation of a sum is the sum of the expectations, whether or not the parts are independent, so a count can be split into indicators whose expectations are just probabilities.

From Probability.