mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20180101) and dateline < UNIX_TIMESTAMP(20190101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 1841 | +----------+ 1 row in set (0.03 sec) mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20170101) and dateline < UNIX_TIMESTAMP(20180101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 1851 | +----------+ 1 row in set (0.03 sec) mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20160101) and dateline < UNIX_TIMESTAMP(20170101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 2502 | +----------+ 1 row in set (0.05 sec) mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20150101) and dateline < UNIX_TIMESTAMP(20160101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 2638 | +----------+ 1 row in set (0.06 sec) mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20140101) and dateline < UNIX_TIMESTAMP(20150101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 1722 | +----------+ 1 row in set (0.08 sec) mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20130101) and dateline < UNIX_TIMESTAMP(20140101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 2407 | +----------+ 1 row in set (0.15 sec) mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20120101) and dateline < UNIX_TIMESTAMP(20130101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 829 | +----------+ 1 row in set (0.12 sec) mysql> select count(*) from post where dateline > UNIX_TIMESTAMP(20110101) and dateline < UNIX_TIMESTAMP(20120101) AND username = 'RudiC'; +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0.14 sec)