ruby - count args reverse order