In 2005, the Amagasaki rail crash [0] claimed 107 lives. This was a significant disaster and puts the lie to your claim that Japan has had only 5 deaths due to train accidents in approximately the last 45 years.
[0] https://en.wikipedia.org/wiki/Amagasaki_rail_crash
edit: changed "death" to "deaths due to train accidents"