Count Strings Hackerrank Solution Python W3schools