Daten in einem Array zählen PHP

Ich habe dieses Array:

Array (
[0] => Array ( [x] => 2016-04-19 ) 
[1] => Array ( [x] => 2016-05-25 ) 
[2] => Array ( [x] => 2016-05-26 ) 
[3] => Array ( [x] => 2016-05-27 ) 
[4] => Array ( [x] => 2016-05-28 ) 
[5] => Array ( [x] => 2016-05-29 ) 
[6] => Array ( [x] => 2016-05-29 ) 
[7] => Array ( [x] => 2016-06-02 ) 
[8] => Array ( [x] => 2016-06-03 ) 
[9] => Array ( [x] => 2016-06-07 ) 
[10] => Array ( [x] => 2016-06-10 ) 
[11] => Array ( [x] => 2016-06-17 ) 
[12] => Array ( [x] => 2016-06-24 ) )

Ich versuche zu zählen, wie viele Tage Duplikate sind und erhalte diese Zahl in einer Variablen. Wie wir zum Beispiel sehen können, gibt es zwei gleiche Daten:

29.05.2016

Ich habe es versuchtarray_count_values() aber es heißt, es können nur Strings und ganze Zahlen gezählt werden. Das ist richtig, da dies eine Datumsvariable ist. Das ist der Code:

$eventDates = $object->get("date");
$result = $eventDates->format("Y-m-d");
$data[] = array("x"=>$result);

Eine Idee, wie man sie zählt?

Antworten auf die Frage(6)

Ihre Antwort auf die Frage