Let $D = \\{1,2,3,4\\}$ be your domain.
A relation symbol of arity $3$ is interpreted as a subset of $D^3$. What is the size of $D^3$? How many subsets does a set of size $k$ have?
A function symbol of arity $2$ is interpreted as a function $D^2 \to D$. What is the size of $D^2$? What is the size of $D$? How many functions are there from a set of size $m$ to a set of size $n$?
Answering the questions above should tell you how many choices you have for interpreting $R$ and interpreting $g$ on the domain $D$. Now an $L$-structure with domain $D$ consists of an interpretation of $R$ and an interpretation of $g$. How many choices do you have total?