Add console.count support