showttable and counts index fixed