Simple serial number generator