Intersections and Self-Intersections of Arcs and Curves on Surfaces