fixed warnings in type conversions

fixed warnings in type conversions from size_t to int (in getting size of number of unique classes in a training problem).