Sorry, "%>%" is from the magrittr package.
If you want, you can just install that.
It would be better though to install the tidyverse pacakge. It contains a lot of other useful functions.
Otherwise, you can also do this:
count(filter(HbA1c, HbA1c > 43))