Fixed problem with counting tries