Also known as the "happy face formula", since we are happy whenever we get to use it. If all outcomes are equally likely, then $$P(A) = \frac{\mathrm{N}(A)}{\mathrm{N}(S)}$$ We can sometimes count using this directly, but usually we need counting techniques.