Fixed missing 'self.' for message counts