What wrong with that code?
You need to include DEC as the second argument to the Serial.println() call to get the correct numbers out.  Read up on this here: Arduino Serial Print. 

In other words, make change below: 

Serial.println(number, DEC); // DEC is needed to get the correct values