There is no party registration, so you would have to use self reporting. I doubt there is an accurate way to count. You go in and just ask for whatever ballot you want. In my heavily Republican county many Rs got D ballots because of a hotly contested Sheriff race. No evil intent, they just wanted a say since there is no R candidate for the office.
So do the D ballots have the R primary choices?