bitcount type should use template class parameter.