Fix count and offset parameter recognization in routes