log: fix --max-count when used together with -S or -G