## Syntax

`TALLY(array, [strict_types: FALSE])`

## Usage examples

|     |     |
| --- | --- |
| Input | 1<br>{<br>2<br>"my_action":{<br>3<br>"message":[<br>4<br>"dog",<br>5<br>"dog",<br>6<br>"cat",<br>7<br>"cat",<br>8<br>"cat",<br>9<br>"fish"<br>10<br>]  <br>11<br>}<br>12<br>}<br>Copy |
| Formula | `TALLY(my_action.message)` |
| Output | 1<br>{<br>2<br>"dog":2,<br>3<br>"cat":3,<br>4<br>"fish":1<br>5<br>}<br>Copy |

|     |     |
| --- | --- |
| Input | 1<br>{<br>2<br>"my_action":{<br>3<br>"message":[<br>4<br>404,<br>5<br>404,<br>6<br>"404",<br>7<br>505,<br>8<br>"505"<br>9<br>]  <br>10<br>}<br>11<br>}<br>Copy |
| Formula | `TALLY(my_action.message, strict_types: TRUE)` |
| Output | 1<br>[<br>2<br>{<br>3<br>"key":404,<br>4<br>"count":2<br>5<br>},<br>6<br>{<br>7<br>"key":"404",<br>8<br>"count":1<br>9<br>},<br>10<br>{<br>11<br>"key":505,<br>12<br>"count":1<br>13<br>},<br>14<br>{<br>15<br>"key":"505",<br>16<br>"count":1<br>17<br>}<br>18<br>]<br>Copy |

## Sample Actions

Event Transform

My Action

Event Transform

TALLY

### Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.
