def METHOD_NAME(self):
    with open("names.cache", "w") as cache:
        p = {
            "first_count": self.first_count,
            "first_full_count": self.first_full_count,
            "first_total": self.first_total,
            "last_count": self.last_count,
            "last_full_count": self.last_full_count,
            "last_total": self.last_total,
        }
        print(json.dumps(p), file=cache)
    print("Dumped counts to names.cache", file=sys.stderr)