Theme options

Permalink
Hi guys, i am developing new theme for marketplace.

1. Please explain how create theme options, that i can add some options for site owner. Example: (Enable page preloader/disable page preloader). Will be very gratefully. I am newbie on concrete5.

2. I would like to show count of comments of page, It is so strange, that code included on page list template, but method not exist.
if(method_exists($entryController,'getCommentCountString')) {
                $comments = $entryController->getCommentCountString('%s '.t('Comment'), '%s '.t('Comments'));
            }

biaprom