Was M1 's writer a costume designer that M2 was written by and starred
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2
}