question: How many spheres are the same material as the green cylinder?
#1 return the  green cylinder 
#2 return the  material of #1 
#3 return spheres 
#4 return the  materials of #3 
#5 return #3 where #4 is  the  same as #2 
#6 return the  number of  #5