Were M4 and M5 written by a male Japanese art director of M2 and directed by M3 's star
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M2 .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 ns:film.actor.film/ns:film.performance.film M3 .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.written_by ?x0
}