in reply to Re^2: Passing Dynamic Value to Test::More tests
in thread Passing Dynamic Value to Test::More tests

Works for me:
use warnings; BEGIN {$test_count = 2} use Test::More tests => $test_count; ok(1); ok(3);
Outputs:

1..2
ok 1
ok 2

Cheers,
Rob