```python
def size_unit(bytes_count: int) -> str:
    if bytes_count < 1024:
        return "B"
    if bytes_count < 1024 * 1024:
        return "KB"
    return "MB"


def size_text(bytes_count: int) -> str:
    """A byte count written in whole units."""
    if bytes_count < 0:
        raise ValueError("a byte count cannot be negative")
    unit = size_unit(bytes_count)
    if unit == "B":
        # Corrected the division from bytes_count // 1000 to bytes_count // (1000 * 1000)
        return str(bytes_count // (1000 * 1000)) + " MB"
    if unit == "KB":
        return str(bytes_count // 1000) + " KB"
```