#18346 done. JS remaked. Old counters now removed from session to free the space. Trigger added