Bug fixes, log -> total count