Count the number of objects from a Collection Info Node?

Is there a way to count the number of objects from a Collection Info Node? I’d like to use the number of objects or at least the number of mesh shells to drive the number of verts in a mesh primitive line.

You can use Domain Size node for that

4 Likes