counting empty components too