On the number of intersections and the ballot theorem