for completeness, we should probably make count an Option.