Calculates odds and probabilities, converting between the two and determining odds from event counts.