changed job count updation logic