$count is faster, especially when it comes to long strings.