Counting number of specific elements in a room / space

I’m trying to calculate the number of chairs in a linked model.
These chairs represent the number of workplaces.
There are different families used, but the will all have “chair” in the name.

The calculated number is used to fill the parameter number_of_wrokplaces

I’m able to read the elements, but I can’t seemd to sort them by room name.
I want the number of elements in the room, not the number of rooms…

For the first question, you can probably use a simple List.Sort node or something similar.
For the second question, it seems that’s what you already get after Elements in Room

How can you know what elements are in a room if they are something else different than furniture, casework, lighting fixtures, etc.?? Custom script nodes don’t work on other Revit categories