Use stream-based directory listing for counting sessions There is no need to accumulate in memory all the list of files in the websessions directory: use the native Java Streams that supports counting. Change-Id: I2e59bb4e38b79febd466cccaacaf1a0d1852984c