In my house.
9 X main lights.
Kitchen work lights.
Extractor fan.
Oven
Hob (gas)
Dishwasher
Washing machine
Dryer.
Fridge.
Freezer.
Food processor
Kettle
Toaster.
TV.
Digi box
PlayStation (2 but anyway)
Extractor fan
Boiler
Laptop
Printer
5 X lamps.
So I managed to get to 30 things. I'm not entirely sure I'd want to hook up all those things to a network though...
Zigbee also runs on 2.4GHz, but I wouldn't even count WiFi out just yet since those devices are on 2.4GHz where latency and throughput are almost irrelevant (to me) for that application. Plus it's usually cheaper.
The problem is that lots of little wifi devices on your network will slow down everything where latency and throughput is relevant. I guess WiFi 6 will "fix" this, so maybe I'll be wrong when light switches are all WiFi 6, but I'm right for now.
Also, latency is very relevant for IoT stuff. Lights turning off 2 seconds after you push a button is a crappy experience.