public static <T> long lengthStream1(List<T> list) {
        return list.stream().mapToInt(x -> 1).sum();
    }
Find the number of elements of a list
java8/src/main/java/com/shekhargulati/ninetynine_problems/_01_lists/P04.java