Raise signals in more cases to update count

The lua part is untested but should be ok (according to boucman).