def count_events(cfg, json): """ Count events """ from wormhole.server.cmd_usage import count_events cfg.json = json count_events(cfg)