> For the complete documentation index, see [llms.txt](https://docs.icb.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.icb.network/build-on-icb-network/hardhat/hardhat-reducing-smart-contract-size/your-first-size-profiling.md).

# Your First Size Profiling

&#x20;         Just like in earlier tutorials, you'll start by checking the size of a smart contract—this time, `Counter.sol`.

&#x20;         Once you’ve installed and configured the `hardhat-contract-sizer` plugin, run the following command:

```bash
npx hardhat size-contracts
```

&#x20;         This command, added by the plugin, will analyze your contracts and display their compiled bytecode size directly in the terminal.

&#x20;         You’ll then see the size report for `Counter`, along with any other compiled contracts in your project.

<figure><img src="/files/VS3nmSCfgj2wFjNbFGSo" alt=""><figcaption></figcaption></figure>

&#x20;         Although the contract is straightforward, the effectiveness of the `hardhat-contract-sizer` plugin becomes clear right away—it provides instant feedback on the size of your compiled contracts.
