Is it possible to make a simple query to count how many records I have in a determined period of time like a year, month, or day, having a TIMESTAMP field, like
TIMESTAMP
GROUP BY YEAR(record_date), MONTH(record_date)
Check out the date and time functions in MySQL.