in reply to Counting test cases

You might consider using Test::Class which is great for organizing your test suite into libraries. In your test module, you then define a subroutine which runs the tests and pass it the number of tests. That way, you don't really need to know the total number of tests, just the number of tests in a subroutine which ideally would test a particular feature or portion of your code base.
package MyTestModule; use base qw/ Test::Class /; use Test::More; sub test_sub1 : Test(2) { my $self = shift; ok(....); ok(....) }
When you update the test_sub1 subroutine to include or remove a test, just change the number in the attribute to the sub. Very convenient! You can also do this.
sub test_sub2 : Test(no_plan) { my $self = shift; ... ... }

--
Rohan