> 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="https://1670530031-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNGHmFVO7DlELOLs4PSVs%2Fuploads%2FR3WsbuZzgKl7eTAOvFah%2Fimage2.png?alt=media&amp;token=3e616fa8-fdaa-4533-8a1d-7ee7dcb5eb28" 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.
