The way I want it to work is like I said before, to look for all unique dates then look at the table again using the unique dates found before to calculate how many times each of them show up in the table, once that has run what I want returned is an array listing the unique dates and how many times that date appears in the table so something like this.