Was M0 a Japanese film director that M1 and M2 were written by and M4 and M5 were directed by
SELECT count(*) WHERE {
M0 ns:film.director.film M4 .
M0 ns:film.director.film M5 .
M0 ns:film.writer.film M1 .
M0 ns:film.writer.film M2 .
M0 ns:people.person.nationality ns:m.03_3d
}