The plane of a square loop of wire with edge length $a=0.200 \mathrm{~m}$ is perpendicular to the Earth's magnetic field at a point where $B=15.0 \mu \mathrm{T}$, as shown in Figure P31.57. The total resistance of the loop and the wires connecting it to the galvanometer is $0.500 \Omega$. If the loop is suddenly collapsed by horizontal forces as shown, what total charge passes through the galvanometer?