a more Ruby-like computation of numKeyChords for 88, 10, 5 and 20 keys