Remarks on the Topological Invariants of a Class of Solitary Waves