*_retval = 1;
nsCOMPtr<nsIDOMNode> next, nextInner, nextChild; nsCOMPtr<nsIDOMHTMLOptionElement> optionElement(do_QueryInterface(mDOMNode));  nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1")); PRInt32 countChild;  countChild = 0; mDOMNode->GetFirstChild(getter_AddRefs(next));  while (next) { nsCOMPtr<nsIDOMHTMLOptGroupElement> optGroupElement(do_QueryInterface(next)); countChild++; if (optGroupElement) { next->GetFirstChild(getter_AddRefs(nextInner)); while (nextInner ) { nsCOMPtr<nsIDOMHTMLOptionElement> optionElement(do_QueryInterface(nextInner)); if (optionElement) { countChild++; } nextInner->GetNextSibling(getter_AddRefs(nextChild)); nextInner = nextChild; } } next->GetNextSibling(getter_AddRefs(nextInner)); next = nextInner; } *aAccChildCount = countChild;
NS_IMETHODIMP nsHTMLSelectWindowAccessible::GetAccChildCount(PRInt32 *_retval){  *_retval = 1;  return NS_OK;}