put open counter in there and it saves to userdefaults