Was M2 edited by a actor , written by M3 and M4 , and directed by a costume designer
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x1 a ns:film.film_costumer_designer .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4
}