adding log count