fixed multiple defines of count.