question: How many of the cubes are the same material as the blue sphere?
#1 return cubes 
#2 return blue sphere 
#3 return material of #1 
#4 return material of #2 
#5 return #1 where  #3 is  the   same as #4 
#6 return number of #5