Detect # of keys from cipher string.