Try this:
if ((($count2 > 0) && ($count > 0 )) || ($count2 > 0)) {
do something here;
}
Depending on which statement you absolutely need to be true, put that in the last set to be evaluated.
I suppose you could also do it with a set of if-else:
if (($count2 > 0) && ($count > 0)) {
do one thing here;
} elseif ($count > 0) {
do the other thing here;
} else {
do the default thing;
}