Arduino UNO and CUI encoder (SPI )

Is it possible to have this code record continuous revolutions, rather than resetting after each full revolution?