added getter for the number of representations