add functions to test that numbers are counts/proportions/percentages

If this seems useful, I'll write some tests and someone can pull it.