Were M3 and M4 directed by and written by a female costume designer of M0 and M1
SELECT count(*) WHERE {
?x0 ns:film.film_costumer_designer.costume_design_for_film M0 .
?x0 ns:film.film_costumer_designer.costume_design_for_film M1 .
?x0 ns:people.person.gender ns:m.02zsn .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.written_by ?x0
}