def record(event, events=[]): events.append(event) return len(events) print(record("created"), record("paid"))