Let 蟺 be a factor code from a one dimensional shift of finite type X onto an irreducible sofic shift Y. If 蟺 is finite-to-one then the number of preimages of a typical point in Y is an invariant called the degree of 蟺. In this paper we present an algorithm to compute this invariant. The generalized notion of the degree when 蟺 is not limited to finite-to-one factor codes, is called the class degree of 蟺. The class degree of a code is defined to be the number of transition classes over a typical point of Y and is invariant under topological conjugacy. We show that the class degree is computable.