def METHOD_NAME(rec, old_db, new_db, migrate):
    category = check_blob(rec, old_db, new_db, migrate)
    stats = Stats.get(rec["type_code"])
    setattr(stats, category, getattr(stats, category) + 1)