public void sample(int position) {
		// Ignore counts for zero or one-length chromosomes
		if (length <= 1) {
			// Gpr.debug("Warning: Chromosome '" + chrName + "' has length " + chrLength);
			return;
		}

		int i = position / factor;
		if ((i >= 0) && (i < count.length)) {
			count[i]++;
			total++;
		} else Gpr.debug("Error counting samples on chromosome '" + name + "'. Position '" + position + "' => count[" + i + "]  (count.length: " + count.length + ", factor: " + factor + ", chrLength: " + length + ").");
	}