[firedrake] Counting FLOPS for assembling residual and Jacobian