With the BlockBegin node in Houdini it’s possible to name primitives or what not with the iteration of the BlockBegin‘s metadata(another BlockBegin node).
Using the code:
detail("../foreach_metadata/", "iteration", 0)
inside the AttrributeCreate node’s attribute declaration. set to Integer and the code as the Value.