You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: phenotype.rb
    path of file: ./repos/snpr/app/models
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Phenotype < ApplicationRecord
  include PgSearchCommon

  has_many :user_phenot
    
  def self.with_number_of_users
    from(
      select('phenotypes.*, count(user_phenotypes.*) as number_of_users')
        .joins('LEFT JOIN user_phenotypes ON user_phenotypes.phenotype_id = phenotypes.id')
        .group(1)
        .as('phenotypes')
    )
  end