private static long _count(Mapping mapping) { PCLCollection pcl = ((MappingImpl) mapping).getPCLCollection(); return pcl == null ? 0 : pcl.count(); }