<p>You mean how many rows the table has?</p>

<pre><code>{{ matrixblock.superTableFieldHandle|length }}
</code></pre>

<p>Or the number of blocks of a matrix field?</p>

<pre><code>{{ parent.matrixFieldHandle|length }}
</code></pre>

<p>To get the number of blocks for each row</p>

<pre><code>{% for row in entry.superTableMatrix %}
    {{ row.matrix|length %}
{% endfor %}
</code></pre>

CC BY-SA 3.0
2018-04-23T22:37:19.427Z
Is there anyway to get all the records listed in the SuperTable across each Matrix entry within the Entry.  I am not sure if I am saying that correct.  Basically I have 4 matrix records and within one of the matrix blocks there is a SuperTable and there would be 5-100 records in thost SuperTables.  So combined could be 20-400 lines since the SuperTable is a text field.
Vin
CC BY-SA 3.0
2018-04-23T22:38:18.200Z
Basically need the total count for all those SuperTable entries for each Entry.
Vin
CC BY-SA 3.0
2018-04-23T22:40:35.703Z
You can loop through each field and add the number for each element
Robin Schambach
CC BY-SA 3.0
2018-04-09T15:57:55.217Z
2018-04-09T15:57:55.217Z
Robin Schambach
<p>Is there an easy way to return the total number of entries in a Super Table within a Matrix field?</p>

<matrix><plugin-supertable>
Matrix Field Count Records
# Matrix Field Count Records

(Asked by: username_0 on 2018-04-09)

Is there an easy way to return the total number of entries in a Super Table within a Matrix field?

**Tags:** matrix, plugin-supertable


---

## 1 answers

### Answer by username_1 on 2018-04-09. Score: 2 | Accepted answer

You mean how many rows the table has?
{{ matrixblock.superTableFieldHandle|length }}

Or the number of blocks of a matrix field?
{{ parent.matrixFieldHandle|length }}

To get the number of blocks for each row
{% for row in entry.superTableMatrix %}
    {{ row.matrix|length %}
{% endfor %}

> **Comments:**
> **username_0**: Is there anyway to get all the records listed in the SuperTable across each Matrix entry within the Entry.  I am not sure if I am saying that correct.  Basically I have 4 matrix records and within one of the matrix blocks there is a SuperTable and there would be 5-100 records in thost SuperTables.  So combined could be 20-400 lines since the SuperTable is a text field.  
> **username_0**: Basically need the total count for all those SuperTable entries for each Entry.  
> **username_1**: You can loop through each field and add the number for each element  

---

