question: Besides the soldiers  and captains how many of the other ranks were there?
#1 return ranks 
#2 return #1 that is soldier 
#3 return #1 that is captain 
#4 return #1 Besides #2 
#5 return #4 Besides #3 
#6 return number of  #5