updated counter to use mget