How to initialize pulse counter with value of a helper?

Hello,

How can I initialize the total of a pulse counter with the value of a helper ?

This seems not posible :

service: esphome.solar_panels_set_pulse_total1
data:
  new_pulse_total: {{ states('input_number.number_pulse_total_1')|int }}