Count Data Points In R