Just a suggestion - try:
my $cond = GT::SQL::Condition->new('AssignedToPackage', '=', $_, 'AlreadyChecked', '=', '0');
my $count = $table->count($cond) or die $GT::SQL::error;
I've had a quick look at my code - I'm using count successfully but in every case I'm using it in this form.
Are you sure that $_ has a value and have you tried '0' with quotes.
my $cond = GT::SQL::Condition->new('AssignedToPackage', '=', $_, 'AlreadyChecked', '=', '0');
my $count = $table->count($cond) or die $GT::SQL::error;
I've had a quick look at my code - I'm using count successfully but in every case I'm using it in this form.
Are you sure that $_ has a value and have you tried '0' with quotes.