Taking into account Josias's numbers and their poor performance in the war, specifically after the Battle of Karánsebes, the Pasha was convinced that he could defeat this force easily.
The Pasha's confidence stemmed from Josias's dwindling numbers and their lackluster performance after the Battle of Karánsebes, which led him to believe he could easily defeat them.