You Can use Hall Sensor
By read of North and South of the magnet it account 1 return for each turn of the shaft.