You want a GPS type bike computer, with a separate mount for each bike. That way you can just put the unit on the bike your riding. The you can upload the data to Strava or what ever you choose to get total miles, etc.
I use a Cateye Stealth that my son got me a few years ago. Works like a charm.