https://letuscrack.com/function-countelement-cts-pattern/
Function countElement – CTS PATTERN