def number_of_photons(i,n=6):
    """Check if number of photons in a sample is higher than n (default value is 6)"""
    bitstring = tuple(i)
    if sum(bitstring) > n:
        return True
    else:
        return False