@Override
    protected boolean accept(File file, long totalSize, int totalCount) {
        return totalCount <= maxCount;
    }
{@link DiskUsage} that uses LRU (Least Recently Used) strategy and trims cache size to max files count if needed.

@author Alexey Danilov (danikula@gmail.com).
dkplayer-videocache/src/main/java/com/danikula/videocache/file/TotalCountLruDiskUsage.java