Was a screenwriter that M3 starred , M4 starred , and M2 was written by M0
SELECT count(*) WHERE {
M0 a ns:film.writer .
M0 ns:film.actor.film/ns:film.performance.film M3 .
M0 ns:film.actor.film/ns:film.performance.film M4 .
M0 ns:film.writer.film M2
}