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