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