// SPDX-License-Identifier: MIT pragma solidity 0.8.28; /// @notice Teaching contract: no Ether or external calls. contract Counter { uint256 public count; event CountChanged(uint256 value); function increment() external { count += 1; emit CountChanged(count); } function reset() external { count = 0; emit CountChanged(count); } }