request(timestamp) {
  // end::description[]
  // tag::solution[]
    this.queue.enqueue(timestamp);
    while (timestamp - this.queue.peek() > this.window) this.queue.dequeue();

    return this.queue.size;
  // end::solution[]
  // tag::description[]
  }
Add new request and calculate the current count within the window.
@param {number} timestamp - The current timestamp (increasing order)
@return {number} - The number of requests within the time window.