The Arithmetic Complexity of Tensor Contraction