Quantifying the Topology of Magnetic Skyrmions in three Dimensions