The Index With Respect to a Rigid Subcategory of a Triangulated Category