Check the type of the count table and either conver to data.frame or throw a error/warning. This might happen if the counts are stored as a matrix.