Kac-Rice formulas for random fields and their applications in: random geometry, roots of random polynomials and some engineering problems