New functino: know how much pages we will need, next step: send this to client site