Do you want to count access statistics for anonymous visitors only? Do you want to reset access statistics for unpublished articles?
I'm assuming you're using the Drupal 7 statistics module.
Instead of copying the whole statistics module and changing it, there's a simple trick: Undo the +1 of registered users by an -1. Thus, the increase of the statistics module is compensated.