SELECT count(*) as count
FROM %s
WHERE form_id=%s
AND payment_method='IDPay'