0

2×24 NOT, 2×10+5 AND, 2×2+5 OR, 2×2NOR
This totally does not scale. Like not at all. Maybe I'll try to improve it.
Those 2 big circuits are counting the number of active inputs:
The upper right one counts the number of bits with an even power (zero to 4)
The lower left one counts the number o...