How many times does the number $k$ occur in the composition of $n$?
In short, the difference between the partition of an integer and composition is the order of numbers. In partition, the order doesn't matter whereas, in composition, it does. That's why Partitions are sometimes called as ordered Compositions.
Example: $k$ = $1$ & $n$ = $5$
The composition of 5 are:
$5$
$4 + 1$
$3 + 2$
$3 + 1 + 1$
$2 + 3$
$2 + 2 + 1$
$2 + 1 + 2$
$2 + 1 + 1 + 1$
$1 + 4$
$1 + 3 + 1$
$1 + 2 + 2$
$1 + 2 + 1 + 1$
$1 + 1 + 3$
$1 + 1 + 2 + 1$
$1 + 1 + 1 + 2$
$1 + 1 + 1 + 1 + 1$
In all $1$ occurs $28$ times in the composition of $5$
Similarly is there any relation between $k$ and $n$ for all $n \geq 0$ & $k \leq n$
It's recursively defined. Think about it, if k happens in the composition of n then it was tagged on to a composition of n-k. This implies, that there are at least as many k's in compositions of n, as there are compositions of n-k). so you can sum the number of such compositions of earlier positive numbers in the arithmetic progression $kx+(n \bmod k)$. So, for you k=1, n=5 example we have:
compositions of 1:
$$\color{red}1$$
for 2 we have : $$\color{red} 1,\color {green}1\\ \color{green}2 $$ for 3 we have: $$\color{green}{1,1},\color{blue}1\\ \color{green}2,\color{blue}1\\ \color{blue}3$$
for 4 we have: $$\color{blue}{1,1,1},\color{purple}1\\ \color{blue}{2,1},\color{purple}1\\ \color{blue}{3},\color{purple}1\\\color{purple}{2,2}\\\color{purple}4$$
and for 5 we have:
$$\color{purple}{1,1,1,1},\color{lime}1\\ \color{purple}{2,1,1},\color{lime}1\\ \color{purple}{3,1},\color{lime}1\\\color{purple}{2,2},\color{lime}1\\\color{purple}4,\color{lime}1\\\color{lime}5$$
So, let $f(n,k)$ be the the number of such compositions for the value of n, and let g(v) be the number of compositions of v total:
$$f(n,k)=\sum_{i\gt0,i\equiv n\bmod k}^n g(v) +f(n\bmod k,k)$$