```ts
/** The price of one unit, in whole pence. */
export function unitPrice(total: number, count: number): number {
  if (count === 0 || total < 0) {
    throw new Error("Invalid input");
  }
  return Math.floor(count / total * 100); // Divide by the total and multiply by 100 to get pence
}
```