# Count air devices in space

**URL:** <https://forum.dynamobim.com/t/count-air-devices-in-space/56858>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [November 3, 2020, 9:34am UTC](https://forum.dynamobim.com/t/count-air-devices-in-space/56858 "2020-11-03T09:34:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam.mortensen](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@adam.mortensen](https://forum.dynamobim.com/u/adam.mortensen)\
**Post date:** [November 3, 2020, 9:34am UTC](https://forum.dynamobim.com/t/count-air-devices-in-space/56858/1 "2020-11-03T09:34:54Z")

</div>

Hi  
I need help, I’m a bit stuck.  
I’m trying to count all the different airdevices in a space, rename them, like TD1, TD2… Then i want to count how many I’v got of each in any given space.

 ![Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/06d6a2986adc132df16cd47587cb02cf8480dcbe.png)

my end gol is to writer to a parameters. But that is a later problem.  
6xTD1  
1xFD2

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [November 3, 2020, 9:59am UTC](https://forum.dynamobim.com/t/count-air-devices-in-space/56858/2 "2020-11-03T09:59:28Z")

</div>

Did you check, there are similar posts in this forum…

[https://forum.dynamobim.com/search?q=elements%20in%20room](https://forum.dynamobim.com/search?q=elements%20in%20room)

---

<div class="post-metadata">

**Author:** ![adam.mortensen](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@adam.mortensen](https://forum.dynamobim.com/u/adam.mortensen)\
**Post date:** [November 3, 2020, 10:18am UTC](https://forum.dynamobim.com/t/count-air-devices-in-space/56858/3 "2020-11-03T10:18:50Z")

</div>

Hi  
Thanks for the reply, yes I’ve searched. If I’m a terrible searcher, the help to find the right thread where i can find my answere would be much appreciated!  
Thats how I’ve got to the point to get a list of all air-devices in a list. within a list of all spaces. But its the summary that is the problem now. I need to get from the poit:

[0]MTN-400 + HMK-250/400  
[1]MTN-400 + HMK-250/400  
[2]MTN-400 + HMK-250/400  
[3]MTN-400 + HMK-250/400  
[4]MTN-400 + HMK-250/400  
[5]MTN-400 + HMK-250/400  
[6]RASTER GRL 595x595

to

[0]6xTD2  
[1]1xFD1

The translation part I’ve managed, so now i have a list with

[0]TD2  
[1]TD2  
[2]TD2  
[3]TD2  
[4]TD2  
[5]TD2

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 3, 2020, 1:07pm UTC](https://forum.dynamobim.com/t/count-air-devices-in-space/56858/4 "2020-11-03T13:07:15Z")

</div>

1. List.GroupByKey with both inputs as your translated list.

2. Count the groups.

3. Join the count to the separator text and the Key from the group by key node.
