If the maximum value is zero, the maximum value will be set to one. This avoids a division by zero.
The Rubella::Weighting::PerCount create a field of each given value. The weighting is based on the maximum value. So you are able to create i.e. commit per day maps.