def get_counters(cursor):
    """ Fetches counters for the different database categories and returns
        them in a dictionary """

    counter = {}
    cursor.execute('SELECT "count" FROM "counters" WHERE "category" = "genes"')
    counter["genes"] = int(cursor.fetchone()[0])
    cursor.execute('SELECT "count" FROM "counters" WHERE "category" = "transcripts"')
    counter["transcripts"] = int(cursor.fetchone()[0])
    cursor.execute('SELECT "count" FROM "counters" WHERE "category" = "vertex"')
    counter["vertices"] = int(cursor.fetchone()[0])
    cursor.execute('SELECT "count" FROM "counters" WHERE "category" = "edge"')
    counter["edges"] = int(cursor.fetchone()[0])
    cursor.execute('SELECT "count" FROM "counters" WHERE "category" = "dataset"')
    counter["datasets"] = int(cursor.fetchone()[0])
    cursor.execute('SELECT "count" FROM "counters" WHERE "category" = "observed"')
    counter["observed"] = int(cursor.fetchone()[0])

    return counter