Code:
class Person
  @@count = 0
  attr_accessor :first_name
  attr_accessor :last_name
  attr_accessor :date_of_birth
  
  def self.count
    @@count
  end
  
  def initialize(name = nill)
    @first_name, @last_name = name.split(" ")
    @first_name.capitalize
    @last_name.downcase.capitalize
    @@count+=1
  end
  
  def age
    @month, @day, @year= date_of_birth.split('/')
    t = Time.now
    @year - t.year
  end
end

P = Person.new("James Lowe")
P.count
I get an error when I try to run the count method.