def size(self,chrom=''):
        """Return a tuple of the table size"""
        
        numcol=len(self.columns)
        numrow=0
        if not chrom:
            chrs=self.get_chroms()
            try:
                for chr in chrs:
                    numrow+=len(self.table[chr][self.columns[1]])
            except IndexError:
               numrow=0
        else:
            try:
                numrow=len(self.table[chrom][self.columns[1]])
            except __HOLE__:
                pass
        
        return (numrow,numcol)
dataset/ETHPy150Open taoliu/taolib/Assoc/tables.py/AnnotTable.size