Have to explicitly "import" S4 generic as.matrix() of Biostrings in countNucleotides().