countComponents had a bug, testing was not exhaustive, one bug has been fixed but need to do test it properly