pragma solidity ^0.4.21; contract Counter { uint counter; constructor() public { counter = 0; } function count() public { counter = counter + 1; } }