fixed comment count method