Counting surfaces in 3-manifolds