Answers.Body: <p>Yeah you should be able to do something like</p>
  
  <p><code>{{ block.assetField|length }}</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T13:39:36.540Z
Answers.LastActivityDate: 2015-06-15T13:39:36.540Z
Answers.UserDisplayName: Alec Ritson
Answers.Body: <p>This is old but it looks like there was never an accepted answer. This seems to work for me.</p>
  <pre><code>{% set count = block.carouselImages.count() %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-29T18:38:34.467Z
Answers.LastActivityDate: 2022-07-29T18:38:34.467Z
Answers.UserDisplayName: Jason McKinney
Body: <p>I have a matrix block which has an asset field inside of it. I want to know how many assets are inside the block, is there a way to do so?</p>
  
Tags: <assets><matrix>
Title: How to find number of assets inside a matrix block?
ThreadText: # How to find number of assets inside a matrix block?
  
  (Asked by: username_0 on 2015-06-15)
  
  I have a matrix block which has an asset field inside of it. I want to know how many assets are inside the block, is there a way to do so?
  
  **Tags:** assets, matrix
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-06-15. Score: 3
  
  Yeah you should be able to do something like
  
  `{{ block.assetField|length }}`
  
  
  ---
  
  ### Answer by username_2 on 2022-07-29. Score: 1
  
  This is old but it looks like there was never an accepted answer. This seems to work for me.
  
  ```
  {% set count = block.carouselImages.count() %}
  
  ```
  
  
  ---
  
  