collision counting