Write a Python program to count the number of strings where the string length is 2 or more and the first and last character are same from a given list of strings.
For eg. Sample List : ['abc', 'xyz', 'aba', '1221'] Expected Result : 2"
Notes:
- Define a function to accept a list as parameter.
- Iterate over each element and verify if first chat and last char are same.
- If same increament count by one.
- Return count.