```python
def batch_ends(count: int, size: int) -> list:
    """The position of the first entry of each full batch."""
    if size <= 0:
        raise ValueError("Batch size must be greater than zero.")
    ends = []
    start = 0
    while start < count:
        ends.append(start)
        start += size
    return ends
```