public int getCount(String sequence) {
        reverseComplement = new ReverseComplement(sequence);
        String reverseSequence = reverseComplement.getReverseComplement();
        int count = 0;
        if (containsString(sampleText, reverseSequence)) {
            count = 0;
        } else {
            for (int i = 0; i < sampleText.length() - k; i++) {
                approximatePatternMatching = new ApproximatePatternMatching(sampleText, sequence, dismatches);
                String textToCompare = sampleText.substring(i, i + k);
                if (approximatePatternMatching.compareApproximate(textToCompare, sequence, dismatches)) {
                    count++;
                }

                if (reversePattern) {

                    if (textToCompare.equals(reverseSequence)) {
                        count++;
                        //contains = true;
                    }
                }
            }
        }

        return count;
    }