how to count null values with collections
HOW TO COUNT NULL VALUES
List<String> list = new ArrayList(Arrays.asList
("Java",null,"Python",null, "Ruby"));
CollectionUtils.filter(list, PredicateUtils
.nullPredicate()); ==> keeps only nulls
System.out.println(list.size());