added count pruning but it doesn't handle inserting the same string exaclty twice