Still looking for a solution to this and whilst doing so saw this pop up
This will get your button click amount:
ViewState["count"] = Convert.ToInt32(ViewState["count"]) + 1;
As far as looping through the array I am still working on it. I have only been able to display the last item in the array.