What is the expected number of roots of a polynomial whose coefficients are random? More generally, what is the expected number of zeros of a random one-variable function? The Kac-Rice formula is meant to answer such questions. This paper is an introduction to this less familiar formula and some of its one-dimensional applications.