Use lag para obter o valor da linha anterior e conte a partir das condições desejadas:
select count(*)
from (
select action_date,
action,
lag(action) over (order by action_date) as prev_action
from t
) t
where (action <> prev_action and action = 1)
or (action = 1 and prev_action is null);
Também é possível simplificar em uma única passada:
select count(
case
when lag(action) over (order by action_date) is null and action = 1 then 1
when lag(action) over (order by action_date) is not null
and lag(action) over (order by action_date) <> action
and action = 1 then 1
end
) as cnt
from t;
A ideia é contar apenas as transições para o valor 1, ignorando repetições do mesmo valor.