countIf does not work as expected - Blockchain Data API