@johnnyfred1 In case you didn't see it, there is an excellent writeup on tax residency in the JapanFinance wiki for income tax.
For a Japanese citizen, there may also be some considerations for when a Japanese person is required to register. I'm not the right person to comment on that, but...