Counting Singularities of Quadratic Forms on Vector Bundles