Was M0 a male Japanese film director that wrote M2 and M3
SELECT count(*) WHERE {
M0 a ns:film.director .
M0 ns:film.writer.film M2 .
M0 ns:film.writer.film M3 .
M0 ns:people.person.gender ns:m.05zppz .
M0 ns:people.person.nationality ns:m.03_3d
}