The maximum building or structural height of the main building shall be two stories, or 35 feet, whichever is the lesser, and one story, or 15 feet whichever is the lesser, for accessory buildings. Any basement or portion thereof which projects more than two feet at any one place above the average adjoining grade shall be deemed a story for the purposes of this section in ascertaining building or structural height limitations.