First Application

Here is a simple contract that you can get, increment and decrement the count store in this contract.

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.10;

contract Counter {
    uint public count;

    // Function to get the current count
    function get() public view returns (uint) {
        return count;
    }

    // Function to increment count by 1
    function inc() public {
        count += 1;
    }

    // Function to decrement count by 1
    function dec() public {
        count -= 1;
    }
}

Try on Remix