Object Counting via Convolutional Neural Network