# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.icb.network/build-on-icb-network/hardhat/hardhat-reducing-smart-contract-size/your-first-size-profiling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
