import itertools
from tqdm import tqdm
def count(v,x,y,z, length=5):
counter = 0
for A in tqdm(itertools.product([0,1], repeat=length)):
for B in itertools.product([0,1], repeat=length):
for C in itertools.product([0,1], repeat=length):
if intersecttriple(A, B, C) == v and intersectpair(A, B) == x and intersectpair(B, C) == y and intersectpair(A, C) == z:
counter += 1
return counter