Cycle Indices In Arithmetic Geometry