Repetition counting in videos using deep learning