public static int Cardinality(Object obj, Collection coll){
		if(coll == null){
			throw new NullPointerException();
		}
		if(obj == null){
			throw new NullPointerException();
		}
		for(Object o : coll){
			if(o.equals(obj)){
				total++;
			}
		}
		return total;
		}