<?php
$story = array();
$story[] = 'As a developer, I want to refactor the PHP & javascript so that it has less duplication';
$story[] = ' As a developer, I want to configure Jenkins so that we have continuous integration and I love mysql';
$story[] = ' As a tester, I want the test cases defined so I can test the system using php language and phpunit framework';

$languages = [
	'php' => 0,
	'javascript' => 0,
	'mysql' => 0,
];

for( $i=0,$size=count($story); $i<$size; ++$i )
{
	$text = strtolower($story[$i]);
	foreach( $languages as $word => $nb )
		$languages[$word] += substr_count($text, $word);
}

var_export($languages);
// your code goes here