Was M3 's male star a Japanese film producer that wrote M1
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.actor.film/ns:film.performance.film M3 .
?x0 ns:film.writer.film M1 .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.03_3d
}