Added synchronize and uppdated the instance variable after setting the number to NSUserDefaults