Was a screenwriter influenced by M1 , influenced by M2 , M3 , M4 , and M5 , and influenced by M6 's costume designer
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:influence.influence_node.influenced_by M3 .
?x0 ns:influence.influence_node.influenced_by M4 .
?x0 ns:influence.influence_node.influenced_by M5 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M6
}