How many states were ruled by myriarchies