Counting objects using computer vision