Keep track of the longest tail