Was a film that was written by , starred , and was directed by a film director M1
SELECT count(*) WHERE {
?x0 a ns:film.director .
M1 a ns:film.film .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.starring/ns:film.performance.actor ?x0 .
M1 ns:film.film.written_by ?x0
}