import re


def get_total_tag_counts(tag_bed_file):
    """
    Get total tag counts given the current experimental run
    file should be a bed file.
    """
    counts =0;
    infile = open(tag_bed_file,'r');
    for line in infile:
            """ check to make sure not a header line """
            if not re.match("track", line):
                counts += 1;
    infile.close();
    return counts;