Variation of iterated Brownian motion