global

def sleeping() @status.reduce(0){|x, s| x += (s == 'sleep' ? 1 : 0) } end

def sleeping() @status.reduce(0){|x, s| x += (s == 'sleep' ? 1 : 0) } end