Even here I do not like a hard-coded number. In addition, you want to initialize it to a number that it can never attain (negative 1), so that the program crashes if the number somehow slips through cracks.