Table functionalitities fixed

Working duplicate counte (table not working properly with the duplicate
counter, yet)