def count_bits(bits):
    """Count number of bits on each bit position."""
    counted_bits = {
        position: {'1': 0, '0': 0}
        for position, _ in enumerate(bits[0])
    }
    for line in bits:
        for position, bit in enumerate(line):
            counted_bits[position][bit] += 1
    return counted_bits