Fixed getLogCount()