What makes you think that "Z" can only count to 255? "Z" is set to be a word of 16 bits so it can count to 65535 maximum. As far as sending it out to the serial port, are you trying to send it in ASCII or the binary representation? You should be seeing on your terminal "400"
Bookmarks