Each method in FireWatir::Firefox

Hi

I am trying to run my script in Firefox. I want to count hoe mant
Firefox window has opened. I can do it easily in IE by following code.

  count=0
  shell = WIN32OLE.new('Shell.Application')
  shell.Windows.each do |window|
    if window.path =~ /Internet Explorer/
      count+=1
    end
  end
  puts count

But the window.path here is not having Firefox path even though FF is
opened. So can any one help me out how can i count number on FF window
opened?