Was M5 written by a Japanese director of M1 , M2 , M3 , and M4
SELECT count(*) WHERE {
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.director.film M3 .
?x0 ns:film.director.film M4 .
?x0 ns:people.person.nationality ns:m.03_3d .
M5 ns:film.film.written_by ?x0
}