0👍
From my understanding count will not include 0. However in front end you can use HTML if else to get the value 0 for you. Something like
$months->weeks != null ? $months->weeks : '0'
//If there’s a value,show,else i’ll be null
Source:stackexchange.com