Did a person influence M3 's costume designer and writer , influence M1 , and influence M2
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M3 .
?x1 ns:film.writer.film M3
}