HBASE-26919 Rewrite the counting rows part in TestFromClientSide4 (#4314)