Rebar Host Count

Hi all,
I have some urgent querries and I hope I can receive your response asap.

My purpose is to use dynamo to acquire the number of host of a rebar molecular. After that I will fill in share parameter of corresponding rebar molecular which was made previously.

I’m looking foward to receiving your response.

Thanks for kindly support.