count dot annnotated objects in different types

Adapted from p2pNet, making full use of the two heads, classification and regression, for simultaneous multi-class ECM counting