Estimating Dataset Dimension via Singular Metrics under the Manifold Hypothesis: Application to Inverse Problems