def count_tx_and_gene(gff):
    """ Return: count of gene; count of transripts; tx per gene.
    """
    tx_1 = 0
    tx_2 = 0
    tx_n = 0
    tx_dict = gff.get_TxDict()
    for tx in tx_dict.values():
        if tx.get_count() == 1:
            tx_1 += 1
        elif tx.get_count() == 2:
            tx_2 += 1
        else:
            tx_n += 1
    tx_count = len(tx_dict)
    gene_count = len(gff.get_GeneDict())
    if tx_count == 0 or gene_count == 0:
        return 0, 0, 0, 0, 0, 0, 0, 0, 0
    return (gene_count, tx_count, tx_count / gene_count, tx_1, tx_1 /
        tx_count, tx_2, tx_2 / tx_count, tx_n, tx_n / tx_count)
