Did M4 and M5 star M3 's sequel 's Japanese writer and star M0 's female star
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:people.person.gender ns:m.02zsn .
?x1 ns:film.writer.film ?x2 .
?x1 ns:people.person.nationality ns:m.03_3d .
?x2 ns:film.film.prequel M3 .
M4 ns:film.film.starring/ns:film.performance.actor ?x0 .
M4 ns:film.film.starring/ns:film.performance.actor ?x1 .
M5 ns:film.film.starring/ns:film.performance.actor ?x0 .
M5 ns:film.film.starring/ns:film.performance.actor ?x1
}