N + 1

Need to use
unsigned int
if you want to count from 0 to 65,535.