Measurement of the topological Chern number by continuous probing of a qubit subject to a slowly varying Hamiltonian