public static int[] getAlleleCounts(List<Accession> accessions) {
	if (accessions.size()==0) return null;

	Accession a1 = accessions.get(0);
	int alleleCnt = a1.numSSRAlleles();
	int alleleTotals[] = new int[alleleCnt];
	for(int i=0; i<alleleCnt; i++) {
	    alleleTotals[i] = 0;
	}
		
	for(Accession a : accessions) {
	    ListIterator<List<Double>> mItr = a.getSSRValues().listIterator();
	    ListIterator<Double> aItr = null;

	    int i = 0;
	    while (mItr.hasNext()) {
		aItr = mItr.next().listIterator();
		while (aItr.hasNext()) {
		    Double val = aItr.next();
		    if(val != null) {
			double v = val.doubleValue();
			if (v > 0) {
			    alleleTotals[i] += 1;
			}
		    }
		    i++;
		}
	    }
	}
	
	return alleleTotals;
    }