Change ACTJ algorithm to only run if there isn't a count

Also change to using an If statement rather than a post-conditional