Not sure what you mean with the "integer to use when chart resuts are counted". But there are some pitfalls. There is a limit to the total length of the request (HTTP limit i believe of 1024 characters(?)). So if there's too much data you need to weed out some samples .