count commit parents to determine merge