While the Japanese started late in the escort they built rather more than is sometimes appreciated and were still completing them as late as July 1945. For exampleIts also worth remembering that their tends to be a lot of emphasis on the destroyer, when the key anti submarine vessel is the Frigate/Corvette/Sloop. Of these, the RN alone had hundreds of ships (excluding A/S Trawlers) supported by escort carriers and a significant Coastal Command. Compared to this, the IJN had next to nothing.
And those are only the purpose built ships. They also took over large numbers of captured and salvaged vessels. Again by way of example
By the way I'm not arguing that they were as numerous nor anywhere near as effective as Allied AS craft, just that they were more numerous than is sometimes appreciated.