my ($Count_A_ANY) = $dbh_B->selectrow_array( ... your SQL here ... );