<prompt> Ngola tšebetso ho C ho bala palo ea liketsahalo tsa khoele ka hara khoele e telele.nan  <response>: Instruction in English: Write a function in C to count the number of occurrences of a string inside a longer string. . Response in English: Here is a C function that counts the number of occurrences of a string inside a longer string: cinclude include using namespace std;int countStringOccurrencesstring source, string search int count 0; int pos source.findsearch, 0; find the first occurrence of the search string while pos ! string::npos count; increment the count pos source.findsearch, pos 1; find the next occurrence starting from the previous position 1 return count; You can use the function like this: cint main string source I love AI. AI is awesome.; string search AI; cout search occurred countStringOccurrencessource, search times in the source string. endl; Output: AI occurred 2 times in the source string. return 0; . Response in Sesotho: Mona ke tsebetso ea C e balang palo ea liketsahalo tsa khoele ka hara khoele e telele: c include kenyelletsa sebelisa namespace std; int countStringOccurrencesmohloli oa likhoele, patlo ea likhoele int count 0; int pos mohloli.fumanabatla, 0; fumana ketsahalo ea pele ea khoele ea ho batla ha pos! khoele::npos count; eketsa palo pos mohloli.fumanabatla, pos 1; fumana ketsahalo e latelang ho qala ho tloha sebakeng se fetileng 1 palo ea ho khutla; U ka sebelisa tsebetso e kang ena: c int main string source Ke rata AI. AI e hlolla.; ho batla likhoele AI; cout batla etsahetse countStringOccurrencessource, search linako tse mohloding wa khoele. qetellong; Sephetho: AI e etsahetse makhetlo a 2 moleng oa mohloli. khutla 0; 