> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/contracts/contracts.with_struct_fields_count.md).

# Contracts.with\_struct\_fields\_count()

`with_struct_fields_count(number: int) →` [`Contracts`](/glider-ide/api/contracts.md)

## Query Example

```python
from glider import *

def query():
  contracts = (
    Contracts()
    .with_name("DepositSecurityModule")
    .with_struct_fields_count(2)
    .exec(1))

  structs = contracts[0].structs().exec()
  for struct in structs:
    for struct_field in struct.fields:
      print(struct_field.type)
  
  return contracts
```

## Output Example

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