Added internal function framework with sin,cos,log, and count.