Retrieves raw values up to max count between two timestamps