Commit based on blog post! Fixed couting

Fixed couting and changed long id name..