An homotopical index and multiplicity of periodic solutions to dynamical systems with singular potential