If you would like to count records that reside under the TIMESTAMP field, you could construct a query that counts records for every year and every month. Below is one good suggestion on how to go about this and some notes when dealing with different SQL databases in terms of usage.
Should you wish to know for example the number of records for each year and at the same time for each month, the following query can be used in order to achieve the above. The exact functions to be used will depend on the SQL dialect that you are using.
SELECT YEAR(record_date) AS year,
MONTH(record_date) AS month,
COUNT(id) AS record_count
FROM stats
GROUP BY YEAR(record_date), MONTH(record_date)
ORDER BY year, month;