Try it

=count(a1:indirect("a"&match(9.99999999999999e+307,b:b)))