Query Run
select count(*) from logging, actor where actor_id=log_actor and log_action="thank" 3 months ago