Piwik Goal based on duration of PageView

I want to track a Goal which is based on duration of the PageView and the number of words on the Page. Is that possible somehow?