thanks man but this code gave me this result
object(stdClass)#800 (9) { [“publish”]=> string(1) “5” [“future”]=> int(0) [“draft”]=> string(1) “1” [“pending”]=> int(0) [“private”]=> int(0) [“trash”]=> string(1) “1” [“auto-draft”]=> int(0) [“inherit”]=> int(0) [“moderate”]=> int(0) }
Then just use this: $count->publish.
And let me know your wordpress.org username