Estimation of critical number of hydrogen bubbles for critical current density using the dry spot model