```python
from fastapi import FastAPI
import asyncio

import helpers  # noqa: F401

app = FastAPI()

@app.post("/thumbnail")
async def thumbnail(data: bytes):
    loop = asyncio.get_event_loop()
    thumbnail_bytes = await loop.run_in_executor(None, helpers.resize_image, data)
    return {"size": len(thumbnail_bytes)}
```