fix log message - count can be None