return 0;
nsCOMPtr<nsIWindowMediator> windowMediator(do_GetService(kWindowMediatorCID)); ThrowErrIfNil(windowMediator, paramErr);  nsCOMPtr<nsISimpleEnumerator> windowEnumerator; if (NS_FAILED(windowMediator->GetXULWindowEnumerator(nsnull, getter_AddRefs(windowEnumerator)))) ThrowOSErr(paramErr);  long windowCount = 0L; PRBool more; windowEnumerator->HasMoreElements(&more); while (more) { nsCOMPtr<nsISupports> nextWindow = nsnull; windowEnumerator->GetNext(getter_AddRefs(nextWindow)); nsCOMPtr<nsIXULWindow> xulWindow(do_QueryInterface(nextWindow)); if (!xulWindow) break;  if (kAnyWindowKind == windowKind) ++windowCount; else {  TWindowKind	thisWindowKind = GetXULWindowKind(xulWindow); if (thisWindowKind == windowKind) ++windowCount; }  windowEnumerator->HasMoreElements(&more); }  return windowCount;
long CountWindowsOfKind(TWindowKind windowKind){	//  write me	return 0;}