corrected counting of entries

before, the entry count of the last action was returned, not the one
from the initiated action