Java 8 Stream Program to Find the total number of elements present in the List | frequently asked