$r{456}{d} ==> 7 $r{123}{a} ==> 3