fixed GetCountEntries