You just have to call the field name(column name) on the returned object. For ex:
@no_of_licenses = Company.find(:first,:conditions => ["id = ?",@company_id] , :select => 'no_of_licenses').no_of_licenses
The above query can be simplified as
@no_of_licenses = Company.where(:id => @company_id).pluck(:no_of_licenses).first