klondike - avoid division by zero if maxcount is unexpectedly zero