Were M4 , M5 , and M6 directed by and written by a costume designer that was influenced by M1 , M2 , and M3
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:influence.influence_node.influenced_by M3 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.directed_by ?x0 .
M6 ns:film.film.written_by ?x0
}