Jack has two passions: anime and prefix functions. Therefore, he decided to take a small list of Japanese words and find which of them has the longest border among all possible prefixes. Write down the length of such border.
List:
hirohito, miyazaki, murakami, ichinomiya, matsumae