Use mozPaintCount when it is available