You can read any kind of event that is emitted from a contract using:
contract.queryFilter(...) — to read past eventscontract.on(...) — to listen to real-time eventsLet’s break it down by event structure:
event Update(uint256);
args[0], not args.countevent Update(uint256 newCount);
args.newCount or args[0]event Transfer(address indexed from, address indexed to, uint256 amount);