IIRC, there are gun licenses in Japans. Too bad they only apply to shotguns and rifles. (I learned that from the manga 'I am a Hero'. The main character legally owned a shotgun in Japan.)