Initialize motdNum as 0