Reports/data exports and returning patients

We want to be able to track returning patients, whether it’s looking at the number of patients who book a second appointment (i.e. return after their initial consultation) or the median number of appointments patients have in a year. I’m interested in how other Cliniko users track their returning patient numbers.