Yes, they count. (Though I too did wonder about whether "on your board" meant that they shouldn't.)
The bug in this case was that it wasn't recounting your icons between Empiricism's first effect (drawing a card) and its second (checking for the win condition). So it thought you only had 19 lightbulbs. Fixed with next restart.