improved spike count vectorization, still slow needs work