Did M5 star a Swedish screenwriter that M1 was written by and star M3 's male costume designer
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.writer.film M1 .
?x0 ns:people.person.nationality ns:m.0d0vqn .
?x1 ns:film.film_costumer_designer.costume_design_for_film M3 .
?x1 ns:people.person.gender ns:m.05zppz .
M5 ns:film.film.starring/ns:film.performance.actor ?x0 .
M5 ns:film.film.starring/ns:film.performance.actor ?x1
}