question: How many green items are to the right of the green sphere?
#1 return the  green sphere 
#2 return items 
#3 return #2 that  are green 
#4 return #3 that  are to  the  right of #1 
#5 return number of #4