Format counting script for Google Sheets