refactor models structure
fix typo
test the LogEntry.count method