need to change tests since countComponents() is changing
finished rewriting countComponents and its helpers, now write tests
tests written
print commented out