Optimize table.Count comparisons (#1571)
* Optimize table.Count comparisons
1) Remove unnecessary use of table.Count in TTT (table is sequential).
2) Remove table.Count from duplicator icon generation and keep count in the already existing loop
* minor changes