Added function for variable default count of logs loaded.

This adds a function to evaluate the number of logs that should be loaded, depending on the height of the viewport.