Added calculateFrameCount() and calculateDuration(); close #22
Merge pull request #1 from phoboslab/master

Update from original