I need query using following data & generate report like end below.

```
text | date
-----------------
aa   | 25-08-2017
aa   | 26-08-2017
aa   | 26-08-2017
aa   | 26-08-2017
aa   | 27-08-2017
ab   | 25-08-2017
ab   | 25-08-2017
bb   | 25-08-2017
bb   | 26-08-2017
bb   | 26-08-2017
bb   | 26-08-2017

```

I need report like,

```
text | days
-----------
aa   | 3
bb   | 2
ab   | 1

```