Changed the random log count to user input based.